package com.sharekitchen.service;

import com.sharekitchen.dto.RoomDevDto;
import com.sharekitchen.dto.RoomDto;
import com.sharekitchen.entity.*;

import java.util.List;

public interface RoomService {

//    查询全部
    List<Room> findAllRoom();
    List<RoomDevice> findAllRoomDev();

    List<RoomImages> findAllRoomImages();
    List<RoomAddress> findAllRoomAddr();

//    根据id查询单个
    Room findRoomById(String roomId);

    RoomImages findRoomImagesById(String roomId);
    RoomAddress findRoomAddrById(String roomId);
    List<RoomDevice> findRoomDevById(String roomId);


//    添加房间
    boolean addRoom(RoomDevDto roomDevDto);

//    删除房间
    boolean delRoom(String roomId);

//    修改房间
    boolean updateRoom(RoomDto roomDto);

//    根据roomId和DevId来加入到roomdev表
    boolean addRoomDev(String roomId,String devId);

}
